package openbang.chatroom.service.vo;

/**
 * 密码校验方式定义 : 本站管理、google管理
 * 
 * @author aibo zeng
 *
 */

public enum PwdVerifyEnum {
	OPENBANG (0,"本站管理"),
	GOOGLE(10,"google管理");

	private Integer code;
	private String desc;
	
	private PwdVerifyEnum(Integer code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	public int getCode() {
		return code;
	}
	public String getDesc(){
		return desc;
	}
	
	public static String getDesc(Integer code) {
		for(PwdVerifyEnum each : PwdVerifyEnum.values()) {
			if(each.getCode()==code)
				return each.getDesc();
		}		
		return "";
	}
}
